import request from '@/utils/request'

// 查询岗位调转申请列表
export function listHumanTransfer(query) {
  return request({
    url: '/oa/humanTransfer/list',
    method: 'get',
    params: query
  })
}

// 查询岗位调转申请详细
export function getHumanTransfer(id) {
  return request({
    url: '/oa/humanTransfer/' + id,
    method: 'get'
  })
}

// 新增岗位调转申请
export function addHumanTransfer(data) {
  return request({
    url: '/oa/humanTransfer',
    method: 'post',
    data: data
  })
}

// 修改岗位调转申请
export function updateHumanTransfer(data) {
  return request({
    url: '/oa/humanTransfer',
    method: 'put',
    data: data
  })
}

// 删除岗位调转申请
export function delHumanTransfer(id) {
  return request({
    url: '/oa/humanTransfer/' + id,
    method: 'delete'
  })
}
